package com.huyanqi.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

import com.huyanqi.core.BaseDomainObject;

@Entity
@Table(name = "cs_course")
@XmlAccessorType(XmlAccessType.FIELD)
public class Course extends BaseDomainObject {
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Id
	@Column(name="cs_id",nullable=false)
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long csId;

	public void setCsId(Long csId) {
		this.csId = csId;
	}
	public Long getCsId() {
		return csId;
	}

	@Column(name="cs_step")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long csStep;

	public void setCsStep(Long csStep) {
		this.csStep = csStep;
	}
	public Long getCsStep() {
		return csStep;
	}

	@Column(name="cs_diyid")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long csDiyid;

	public void setCsDiyid(Long csDiyid) {
		this.csDiyid = csDiyid;
	}
	public Long getCsDiyid() {
		return csDiyid;
	}

	@Column(name="cs_content")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private String csContent;

	public void setCsContent(String csContent) {
		this.csContent = csContent;
	}
	public String getCsContent() {
		return csContent;
	}

	@Column(name="cs_img")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private String csImg;

	public void setCsImg(String csImg) {
		this.csImg = csImg;
	}
	public String getCsImg() {
		return csImg;
	}

}